package link.hwx.service.oa.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import link.hwx.entity.oa.OaBillInfoVo;
import link.hwx.mapper.oa.OaPrInfoMapper;
import link.hwx.service.oa.OaInfoService;
import link.hwx.service.oa.OaPrInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@DS("OAData")
@Service
public class OaPrInfoServiceImpl implements OaPrInfoService {

    @Autowired
    private OaPrInfoMapper oaPrInfoMapper;

    @Override
    public OaBillInfoVo findPrInfoByRequestId(String prMainTableName, String requestid) {
        return oaPrInfoMapper.findPrInfoByRequestId(prMainTableName, requestid);
    }

    @Override
    public int updatePrU9DocNoByRequestId(String prMainTableName, String requestid, String srmdocno) {
        return oaPrInfoMapper.updatePrU9DocNoByRequestId(prMainTableName, requestid, srmdocno);
    }

    @Override
    public int updateMemoByRequestId(String mainTableName, String requestName, String requestid) {
        return oaPrInfoMapper.updateMemoByRequestId(mainTableName, requestName, requestid);
    }

}
